<?php

class Comment_model extends Base_model {
	protected $primary_key = 'cid';
	
	/**
	 * get comment content info
	 * 
	 * @param integer $contentid
	 * @param string $type
	 * @return object|boolean
	 */
	public function get_comment_content($contentid, $type='newsfeed'){
		$model = '';
		switch ($type){
			case 'newsfeed':
				$model = 'Newsfeed_model';
				break;
			case 'album':
				$model = 'Album_model';
				break;
			default:
				$model = 'Newsfeed_model';
		}
		$this->load->model($model,'content');
		return $this->content->get($contentid);
	}
}